package com.demo.core.model;

import java.util.List;

import com.demo.core.model.support.SimpleBaseModel;

/**
 * 站点角色功能模型
 * 记录站点的角色所持有的功能
 * 
 * @author ryuu.kk
  */
public class RoleFunction extends SimpleBaseModel implements java.io.Serializable {

	/**
	 * 版本序列化ID
	 */
	private static final long serialVersionUID = 5105730800454899545L;
	
	/**
	 * 角色外键ID
	 */
	private Long roleId;
	
	/**
	 * 功能外键ID
	 */
	private Long siteFunctionId;
	
	/**
	 * 角色功能可用标志
	 */
	private boolean enabled;
	
	/**
	 * 角色功能状态
	 */
	private String status;
	
	/**
	 * 角色模型
	 */
	private Role role;
	
	/**
	 * 功能模型
	 */
	private Function function;
	
	/**
	 * 功能列表
	 */
	private List<Function> functionList;
	
	public Long getRoleId() {
		return roleId;
	}
	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}
	public Long getSiteFunctionId() {
		return siteFunctionId;
	}
	public void setSiteFunctionId(Long siteFunctionId) {
		this.siteFunctionId = siteFunctionId;
	}
	public boolean isEnabled() {
		return enabled;
	}
	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public Role getRole() {
		return role;
	}
	public void setRole(Role role) {
		this.role = role;
	}
	public Function getFunction() {
		return function;
	}
	public void setFunction(Function function) {
		this.function = function;
	}
	public List<Function> getFunctionList() {
		return functionList;
	}
	public void setFunctionList(List<Function> functionList) {
		this.functionList = functionList;
	}
}
